<?php
/**
 * @var $jobsDetail
 * @var $inSameSchoolJob
 * @var $currentJobLocation
 * @var $currentJobProvince
 * @var $currentCityList
 */
?>
<div class="jobContentDetail mainWith">
    <div class="breadCrumb">
        当前位置：<a href="/">首页</a> > <a href="/jobs">找工作</a> > <a href="javascript:void(0)"><?php echo $currentJobProvince->first()->name?>教师招聘</a> >
        <a href="javascript:void(0)"><?php echo $currentJobLocation->first()->city->name?>教师招聘</a>
    </div>
    <div class="jobsContentDetail">
        <div class="jobsDetail">
            <div class="jobsDetailWrap clearFix">
                <h1 class="jobsName detail-job"><?php echo $jobsDetail->name?></h1>
                <div class="jobsDetailInfo">
                    <div class="jobsDetailPublish">
                        发布时间：<?php echo explode(' ',$jobsDetail->publish_date)[0]?>
                    </div>
                    <div class="jobsDetailViewCount">
                        浏览：<span><?php echo $jobsDetail->view_count?></span>次
                    </div>
                    <div class="jobsDetailDeliver">
                        <span><?php echo $jobsDetail->deliver_count?></span>人投递简历
                    </div>
                </div>
            </div>
            <div class="jobsPositionDetail">
                <div class="jobsPositionDetailHeader">
                    <h3 class="detail-h3">职位信息</h3>
                </div>
                <div class="jobsPositionDetailSalary clearFix">
                    <p><span><img src="/img/money.png" alt="工资待遇"></span>工资待遇：<span class="specColor"><?php echo $jobsDetail->salary?></span></p>
                    <p><span><img src="/img/position.png" alt="工作地址"></span>工作地址： <?php echo $jobsDetail->job_address?></p>
                </div>
                <div class="jobsPositionDetailList">
                    <ul class="clearFix">
                        <li><span><img src="/img/person.png" alt="招聘人数"></span>招聘人数：<?php echo $jobsDetail->need_num?>人</li>
                        <li><span><img src="/img/jobs.png" alt="职位类别"></span>职位类别：<?php echo $jobsDetail->position?></li>
                        <li><span><img src="/img/male.png" alt="性别要求"></span>性别要求：<?php echo $jobsDetail->gender?></li>
                        <li><span><img src="/img/jobs.png" alt="年龄要求"></span>年龄要求：<?php echo $jobsDetail->age?></li>
                        <li><span><img src="/img/edu.png" alt="学历要求"></span>学历要求：<?php echo $jobsDetail->education?></li>
                        <li><span><img src="/img/year.png" alt="工作经验"></span>工作经验：<?php echo $jobsDetail->job_experience?></li>
                    </ul>
                </div>
                <hr class="dividerHr">
                <div class="jobsPositionIntro">
                    <div class="jobsPositionIntroHeader">
                        <h3 class="detail-h3">职位描述</h3>
                    </div>
                    <div class="jobPositionDetailIntro">
                        <?php echo $jobsDetail->job_intro?>
                    </div>
                </div>
                <hr class="dividerHr">
                <div class="companyOtherJobs">
                    <div class="companyOtherJobsHeader">
                        <h3 class="detail-h3">公司其他职位</h3>
                    </div>
                    <?php if($inSameSchoolJob->count()>0){
                        ?>
                        <div class="jobs_other_position">
                            <table class="table">
                                <thead>
                                <tr>
                                    <th>职位</th>
                                    <th>薪水</th>
                                    <th>学历</th>
                                    <th>地区</th>
                                    <th>发布时间</th>
                                </tr>
                                </thead>
                                <?php foreach ($inSameSchoolJob as $item ){
                                    ?>
                                    <tr>
                                        <td><a href="/jobs/<?php echo $item->category->name_py?>/<?php echo $item->id?>.html" title="<?php echo $item->name?>"><?php echo $item->name?></a></td>
                                        <td><?php echo $item->salary?></td>
                                        <td><?php echo $item->education?></td>
                                        <td><?php echo $item->school->location?></td>
                                        <td><?php echo mb_ereg_replace('^\s*','',explode(' ',$item->publish_date)[0])?></td>
                                    </tr>
                                    <?php
                                }?>
                            </table>
                        </div>
                    <?php
                    } else {
                        ?>
                        <p style="margin: 30px 0;">暂无岗位招聘</p>
                    <?php
                    }?>
                </div>
            </div>
        </div>
    </div>
</div>